﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Toolbelt.ComponentModel.DataAnnotations.Schema;

namespace HCD.Entities
{
    public class OrdersV : Entity<string>
    {
        [Column("ID")]
        public override string Id { get => base.Id; set => base.Id = value; }
        /// <summary>
        /// 病人标识号
        /// </summary>
        [Column("PATIENT_ID")]
        public string PatientId { get; set; }

        /// <summary>
        /// 病人本次住院标识
        /// </summary>
        [Column("VISIT_ID")]
        public string VisitId { get; set; }

        /// <summary>
        /// 医嘱序号
        /// </summary>
        [Column("ORDER_NO")]
        public string OrderNo { get; set; }

        /// <summary>
        /// 医嘱子序号
        /// </summary>
        [Column("ORDER_SUB_NO")]
        public string OrderSubNo { get; set; }

        /// <summary>
        /// 长临医嘱标志
        /// </summary>
        [Column("REPEAT_INDICATOR")]
        public int RepeatIndicator { get; set; }

        /// <summary>
        /// 医嘱类别
        /// </summary>
        [Column("ORDER_CLASS")]
        public string OrderClass { get; set; }

        /// <summary>
        /// 医嘱正文
        /// </summary>
        [Column("ORDER_TEXT")]
        public string OrderText { get; set; }

        /// <summary>
        /// 医嘱代码
        /// </summary>
        [Column("ORDER_CODE")]
        public string OrderCode { get; set; }

        /// <summary>
        /// 药品一次使用剂量
        /// </summary>
        [Column("DOSAGE")]
        public DateTime? Dosage { get; set; }

        /// <summary>
        /// 剂量单位
        /// </summary>
        [Column("DOSAGE_UNITS")]
        public string DosageUnits { get; set; }

        /// <summary>
        /// 给药途径和方法
        /// </summary>
        [Column("ADMINISTRATION")]
        public string Administration { get; set; }

        /// <summary>
        /// 起始日期及时间
        /// </summary>
        [Column("START_DATE_TIME")]
        public DateTime? StartDateTime { get; set; }

        /// <summary>
        /// 停止日期及时间
        /// </summary>
        [Column("STOP_DATE_TIME")]
        public string StopDateTime { get; set; }
        
        /// <summary>
        /// 执行频率描述
        /// </summary>
        [Column("FREQUENCY")]
        public string Frequency { get; set; }
        
        /// <summary>
        /// 开医嘱科室
        /// </summary>
        [Column("ORDERING_DEPT")]
        public string OrderingDept { get; set; }
        
        /// <summary>
        /// 开医嘱医生
        /// </summary>
        [Column("DOCTOR")]
        public string Doctor { get; set; }
      
        /// <summary>
        /// 医嘱状态
        /// </summary>
        [Column("ORDER_STATUS")]
        public string OrderStatus { get; set; }
      
        /// <summary>
        /// 医生名称
        /// </summary>
        [Column("DOCTOR_NAME")]
        public string DoctorName { get; set; }
      
        /// <summary>
        /// 药品规格
        /// </summary>
        [Column("DRUG_SPEC")]
        public string DrugSpec { get; set; }
      
        /// <summary>
        /// 药品供货商
        /// </summary>
        [Column("FIRM_ID")]
        public string FirmId { get; set; }

    }
}
